def toStr(number, base):
    converString = "0123456789ABCDEF"
    if number < base:
        return converString[number]  # 最小规模
        # return converString[number % base]  # 最小规模
    else:
        return toStr(number // base, base) + converString[number % base]  # 减小规模   调用自身


print(toStr(1452, 16))
